#ifndef WIFI_CONNECT_H
#define WIFI_CONNECT_H

#include <QObject>
#include <QWidget>
#include <QProcess>
#include <QString>
#include <QFile>

#define DEFAULT_SSID       "helloworld"
#define DEFAULT_PWD        "justforfun2020"

class WiFi_Connect : public QWidget
{
    Q_OBJECT
public:
    explicit WiFi_Connect(QWidget *parent = nullptr);
    ~WiFi_Connect();

signals:

private slots:
    void process_result(void);

private:

    QProcess *wifi_process;
    void wifi_connect(void);

protected:
    void closeEvent(QCloseEvent *);

};

#endif // WIFI_CONNECT_H
